package com.thinkgem.jeesite.modules.sys.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.sys.entity.TbShop;
import com.thinkgem.jeesite.modules.sys.entity.TbShopExample;
import com.thinkgem.jeesite.modules.sys.entity.TbTenementWalletStream;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@MyBatisDao
public interface TbShopMapper extends CrudDao<TbTenementWalletStream> {
    int countByExample(TbShopExample example);

    int deleteByExample(TbShopExample example);

    int updateTbShop(TbShop record);

    int save(TbShop record);
    //店铺所在的小区选择成功后，把区域和小区id放入到user表中
    int updateShop(TbShop tbShop);

    int deleteByPrimaryKey(Integer id);
    
    int insert(TbShop record);

    int insertSelective(TbShop record);

    List<TbShop> selectByExample(TbShopExample example);

    TbShop selectByPrimaryKey(Integer id);

    TbShop selectByUidAndStatus(TbShop shop);

    TbShop selectByUid(TbShop shop);
    //根据小区id判断该店铺是否唯一
    TbShop checkShopByCommunity(TbShop tbShop);
    //更改店铺配送费
    int updatePackingFee(TbShop shop);
    int updateByExampleSelective(@Param("record") TbShop record, @Param("example") TbShopExample example);

    int updateByExample(@Param("record") TbShop record, @Param("example") TbShopExample example);

    int updateByPrimaryKeySelective(TbShop record);

    int updateByPrimaryKey(TbShop record);
}